<div class='main'>
	<div class='container'>
		<div class='row'>
			<div class='span1'></div>
			<div class='span10'>
				{{range .PostList}}
				<article>
					<h2><a href="{{urlPost .Pid}}">{{.Title}}</a></h2>
					<div class="post_info">
						<i class="icon-calendar"></i>{{fmtDate .Created}} 
						{{if .Tags}}
						<i class="icon-tag" style="margin-left:10px;" ></i>
						{{range .Tags}}
						<span class="post_tag"><a href="{{urlTag . 1}}">{{.}}</a></span>
						{{end}}
						{{end}}
					</div>
					<div class="post_content">
						{{.Content | showHTML}}
					</div>
					<!--<div class="meta"></div>-->
				</article>
				{{end}}
			</div>
			<div class='span1'></div>
		</div>
	</div>
</div>
{{if getPages .MaxPage .CurrPage}}
<div>
	<div class="container">
		<div class="row">
			<div class='span1'></div>
			<div class="span10">
				<div class="pagination">
					<ul>
						{{$prevpage := (getPrevPage .MaxPage .CurrPage)}}
						{{if not $prevpage}}<li class="disabled"><a>&laquo;</a></li>{{else}}<li><a href="{{urlIndex $prevpage}}">&laquo;</a></li>{{end}}
						{{range (getPages .MaxPage .CurrPage)}}
						{{if .Curr}}<li class="active"><a>{{.Page}}</a></li>{{else}}<li><a href="{{urlIndex .Page}}">{{.Page}}</a></li>{{end}}
						{{end}}
						{{$nextpage := (getNextPage .MaxPage .CurrPage)}}
						{{if not $nextpage}}<li class="disabled"><a>&raquo;</a></li>{{else}}<li><a href="{{urlIndex $nextpage}}">&raquo;</a></li>{{end}}
					</ul>
				</div>
			</div>
			<div class='span1'></div>
		</div>
	</div>
</div>
{{end}}